﻿using System;
using System.Collections.Generic;
using System.Text;
using EZBarTender.DataAccess.DAO.EZBTTableAdapters;
using System.Data;

namespace EZBarTender.DataAccess.Service
{
    public class PrintablesService
    {
        private PrintablesTableAdapter tableAdapter;

        public PrintablesService(string connectionString)
        {
            tableAdapter = new PrintablesTableAdapter();
            tableAdapter.Connection.ConnectionString = connectionString;
        }

        public DAO.EZBT.PrintablesDataTable getAll()
        {
            return tableAdapter.GetData();
        }

        public void fill(DAO.EZBT.PrintablesDataTable table)
        {
            tableAdapter.Fill(table);
        }
    }
}
